#ifndef PREF_NOTIFICATION_H_
#define PREF_NOTIFICATION_H_

#include "p_widgets.h"
#include "../notify.h"

namespace gpyp {
namespace pref {

class Notification : public Gtk::VBox {
private:
  typedef SelectorComboBox<RefNotifyProviderBase> ProviderComboBox;

private:
  Application        &app_;
  Gtk::Window        &parent_;

  Gtk::CheckButton    notify_error_;
  Gtk::SpinButton     timeout_;
  SoundBox            notify_sound_;

  Gtk::Frame          providers_;
  ProviderComboBox    provider_selector_;
  Gtk::VBox           provider_;
  Gtk::Notebook       format_notebook_;
  Gtk::TextView       format_new_;
  Gtk::ScrolledWindow sw_format_new_;
  Gtk::TextView       format_change_;
  Gtk::ScrolledWindow sw_format_change_;

private:
  void test_on_clicked();

  void providers_on_selected(RefNotifyProviderBase provider);

public:
  void init(Application &app, Gtk::Window &parent);

  Notification(Application &app, Gtk::Window &parent);
};

}/*pref*/
}/*gpyp*/

#endif/*PREF_NOTIFICATION_H_*/
